import fetch from 'common/src/utils/fetch'
// 获取异动大类列表
export function getAbnormalList( data ={}) {
    return fetch({
        url: '/api/studentservice/abnormalclass/abnormalClassList',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 获取异动类型列表
export function getAbnormalTypes (data = {}) {
    return fetch({
        url: '/api/studentservice/type/typeList',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 获取申请异动列表
export async function getApplyAbnormalList(data = {}){
    return fetch({
        url: '/api/studentservice/apply/applyList',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 根据id查异动详情
export function getAbnormalDetailById(data = {}) {
    return fetch({
        url: '/api/studentservice/apply/applyDetail',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
// 获取异动原因列表
export function getAbnormalReasons(data = {}) {
    return fetch({
        url: '/api/studentservice/reason/reasonList',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    }); 
}
//申请异动
export function doApplyAbnormal(data = {}) {
    return fetch({
        url: '/api/studentservice/apply/addApply',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    })
}
// 获取学生基本信息
export async function getStudentDetail(data = []) {
    return fetch({
        url: '/api/studentservice/studentInfo/findStuInfoListByUserIds',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}